<!doctype html>
<html lang="en">
    <head>
        <title>轮播</title>
        <!-- Required meta tags -->
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <!-- Bootstrap CSS -->
        <link
            href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css"
            rel="stylesheet"
            integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9"
            crossorigin="anonymous">
    </head>
    <body>
        <div id="demo" class="carousel slide" data-bs-ride="carousel">
            <!-- 指示符 -->
            <div class="carousel-indicators">
                <button type="button" data-bs-target="#demo"
                    data-bs-slide-to="0" class="active"></button>
                <button type="button" data-bs-target="#demo"
                    data-bs-slide-to="1"></button>
                <button type="button" data-bs-target="#demo"
                    data-bs-slide-to="2"></button>
                <button type="button" data-bs-target="#demo"
                    data-bs-slide-to="3"></button>
                <button type="button" data-bs-target="#demo"
                    data-bs-slide-to="4"></button>
            </div>

            <!-- 轮播图片 -->
            <div class="carousel-inner">
                <div class="carousel-item active">
                    <img
                        src="https://static.runoob.com/images/mix/img_fjords_wide.jpg"
                        alt="img_fjords" decoding="async" class="d-block"
                        style="width: 100%;">
                    <div class="carousel-caption">
                        <h3>第一张图片描述标题</h3>
                        <p>第一张图片描述内容显示在这里！！！</p>
                    </div>
                </div>
                <div class="carousel-item">
                    <img
                        src="https://static.runoob.com/images/mix/img_nature_wide.jpg"
                        alt="img_nature" decoding="async" class="d-block"
                        style="width: 100%;">
                </div>
                <div class="carousel-item">
                    <img
                        src="https://static.runoob.com/images/mix/img_mountains_wide.jpg"
                        alt="img_mountains" decoding="async" class="d-block"
                        style="width: 100%;">
                </div>
                <div class="carousel-item">
                    <img
                        src="https://static.runoob.com/images/mix/img_nature_wide.jpg"
                        alt="img_nature" decoding="async" class="d-block"
                        style="width: 100%;">
                </div>
                <div class="carousel-item">
                    <img
                        src="https://static.runoob.com/images/mix/img_mountains_wide.jpg"
                        alt="img_mountains" decoding="async" class="d-block"
                        style="width: 100%;">
                </div>
            </div>

            <!-- 左右切换按钮 -->
            <button class="carousel-control-prev" type="button"
                data-bs-target="#demo" data-bs-slide="prev">
                <span class="carousel-control-prev-icon"></span>
            </button>
            <button class="carousel-control-next" type="button"
                data-bs-target="#demo" data-bs-slide="next">
                <span class="carousel-control-next-icon"></span>
            </button>
        </div>
        <!-- Optional JavaScript -->
        <!-- jQuery first, then Popper.js, then Bootstrap JS -->
        <script
            src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"
            integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm"
            crossorigin="anonymous"></script>
        <script
            src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"
            integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r"
            crossorigin="anonymous"></script>
        <script
            src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.min.js"
            integrity="sha384-Rx+T1VzGupg4BHQYs2gCW9It+akI2MM/mndMCy36UVfodzcJcF0GGLxZIzObiEfa"
            crossorigin="anonymous"></script>
    </body>
</html>